package com.wcy.app.lib.web.ui;

/**
 * describe：webview javascript回调处理
 *
 * @author ：wcy
 * email：
 */
public class AndroidInterface {
    private static AndroidInterface model = null;

    private static AndroidInterface getInstance() {
        if (model == null) {
            synchronized (AndroidInterface.class) {
                if (model == null) {
                    model = new AndroidInterface();
                }
                return model;
            }
        } else {
            return model;
        }
    }

    private Object object;

    private Object getObject() {
        return object;
    }

    public static Object getAndroidObj() {
        return AndroidInterface.getInstance().getObject();
    }

    public static void setAndroidObj(Object object) {
        AndroidInterface.getInstance().setObject(object);
    }

    private void setObject(Object object) {
        this.object = object;
    }
}
